import { createWebHistory, createRouter } from 'vue-router'

import HomeView from '@/views/Home/index.vue'
import AboutView from '@/views/About/index.vue'

const routes = [
  { path: '/', component: HomeView },
  { path: '/about', component: AboutView },
]

export const router = createRouter({
  history: createWebHistory('/sub-vue3'),
  routes,
})